package com.wutong.teacher_server.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wutong.common_server.result.DataTablePageDto;
import com.wutong.teacher_server.excel.annotation.ExcelAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 讲师; InnoDB free: 3072 kB
 * </p>
 *
 * @author wutong
 * @since 2020-10-22
 */
@Setter
@Getter
@NoArgsConstructor
@ApiModel(value="EduTeacher对象", description="讲师; InnoDB free: 3072 kB")
public class EduTeacherTest extends DataTablePageDto<EduTeacherTest> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "讲师ID")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "讲师姓名")
    @ExcelAttribute(name = "讲师姓名", column = "A" , width = 20)
    private String name;

    @ExcelAttribute(name = "讲师简介", column = "B" , width = 20)
    @ApiModelProperty(value = "讲师简介")
    private String intro;

    @ExcelAttribute(name = "讲师资历", column = "C" , width = 20)
    @ApiModelProperty(value = "讲师资历,一句话说明讲师")
    private String career;

    @ExcelAttribute(name = "头衔", column = "D" , width = 20)
    @ApiModelProperty(value = "头衔 1高级讲师 2首席讲师")
    private Integer level;

    @ExcelAttribute(name = "讲师头像", column = "E" , width = 20)
    @ApiModelProperty(value = "讲师头像")
    private String avatar;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    private String uname;
    private String password;


}
